home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 1 / ETO Development Tools 1.iso / Essentials / MacApp Documentation / MacApp AppleLink Messages / MacApp.Tech$ 6⁄29⁄90 / 1515-MPW, ThP and Example-Jun90 < prev    next >
Encoding:
Text File  |  1990-06-29  |  1.8 KB  |  39 lines  |  [TEXT/GEOL]

  1. Item    8111433                         29-June-90        17:24PDT
  2.  
  3. From:   D4887                           Advanced Comm Eng, G G Apple,PRT
  4.  
  5. To:     MACAPP.TECH$                    MacApp Technical
  6.  
  7. Sub:    MPW, ThP and ExampleDraw
  8.  
  9. (Re-logged on. Trying again.)
  10.  
  11.    I just ran smack into a couple of differences between MPW and Think Pascal
  12. which are giving me fits trying to compile the ExampleDraw program that comes
  13. on the disk with the Inside Out Book.
  14.  
  15. 1. ThP does not like missmatched var parameter types in procedures calls where
  16. MPW seems to go humming right along with no problem.  ReadStreamObject calls
  17. for a TObject var parameter which than gets pased to ReadObject var parameter
  18. which calls for a TStreamObject (see p. 431 and p. 427).  No go in ThP until I
  19. discovered and incanted the magical (and probably dangerous) "univ" keyword.
  20.  
  21. 2.  I have always been taught (by myself) that circular "uses" references
  22. between Pascal units were a no-no.  Turbo Pascal enforced this on the PC and
  23. the Mac, and ThP enforces it.  But MPW?  Nooooooo.  Apparently, MPW thinks this
  24. is just hunkey-dorey if what you use does not specifically use what you started
  25. with.  Dave Wilson & Co. blythely circularly referenced UShapeCommands and
  26. UShapeViewHelper in the ExampleDraw Program (If you don't believe it, take a
  27. look at the Make file).  OK by MPW but not ThP.
  28.  
  29.    I haven't unsnarled that one yet so I dont know what else I'll run into.  If
  30. you saw my notes on Compuserve, I had a few problems with the resource files.
  31. in "Bird" but I'll attribute that one to my inexperience with resources (and
  32. Symantic accidently leaving out the resource files on their disk).
  33.  
  34.    If I've missed obvious something here, let me know.  BTW, I'm not on the
  35. MacApp.$Tech listing.
  36.  
  37. G. Gordon Apple (D4887)
  38.  
  39.